﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using System.Xml.Serialization;
using Grundy.Common;

namespace Grundy.Message
{
    
    [DataContract]
    public class LicenseEntitlement
    {
        [DataMember]
        public Guid Id { get; set; }

        [DataMember]
        public virtual License License { get; set; }

        [Required]
        [DataMember]
        public DateTime CreatedOn { get; set; }

        [Required]
        [DataMember]
        public Node Node { get; set; }

        [Required]
        [DataMember]
        public Product Product { get; set; }

        [DataMember]
        public DateTime? ValidFrom { get; set; }

        [DataMember]
        public DateTime? ValidTo { get; set; }
    }
}